import request from '@/utils/request'

// 查询商户匹配订单子项信息列表
export function listOrderItemInfo(query) {
  return request({
    url: '/merchant/orderItemInfo/list',
    method: 'get',
    params: query
  })
}
export function listOrderItemInfo1(query) {
  return request({
    url: 'merchant/account/list',
    method: 'get',
    params: query
  })
}

// 查询商户匹配订单子项信息详细
export function getOrderItemInfo(id) {
  return request({
    url: '/merchant/orderItemInfo/' + id,
    method: 'get'
  })
}

// 新增商户匹配订单子项信息
export function addOrderItemInfo(data) {
  return request({
    url: '/merchant/orderItemInfo',
    method: 'post',
    data: data
  })
}

// 修改商户匹配订单子项信息
export function updateOrderItemInfo(data) {
  return request({
    url: '/merchant/orderItemInfo',
    method: 'put',
    data: data
  })
}

// 删除商户匹配订单子项信息
export function delOrderItemInfo(id) {
  return request({
    url: '/merchant/orderItemInfo/' + id,
    method: 'delete'
  })
}
